package wwy.Entity;

import jakarta.persistence.Entity;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.JoinTable;
import jakarta.persistence.ManyToMany;
import lombok.Getter;
import lombok.Setter;
import wwy.Entity.orgEntity.LogicEntity;

import java.util.Set;

@Getter
@Setter
@Entity
public class Bookshelf extends LogicEntity {

    private Double progress;

    @ManyToMany
    @JoinTable(
            name = "bookshelf_book",
            joinColumns = @JoinColumn(name = "bookshelf_id"),
            inverseJoinColumns = @JoinColumn(name = "book_id")
    )
    private Set<Book> books;
}
